From 3acac648ad6f7c220a48ff9f92f42e814c2097ab Mon Sep 17 00:00:00 2001 From: real-zephex Date: Tue, 26 Mar 2024 13:21:55 +0530 Subject: restructured files --- src/app/info/[id]/page.jsx | 50 ---------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 src/app/info/[id]/page.jsx (limited to 'src/app/info/[id]') diff --git a/src/app/info/[id]/page.jsx b/src/app/info/[id]/page.jsx deleted file mode 100644 index dda7a49..0000000 --- a/src/app/info/[id]/page.jsx +++ /dev/null @@ -1,50 +0,0 @@ -import "../info.css"; -import Image from "next/image"; -import Link from "next/link"; - -export default async function AnimeInfo({ params }) { - let animeID = params.id; - - const info = await getAnimeInfo(animeID); - - return ( -
-
- {info && ( -
-
-

{info.title}

- Drama -
-

{info.description}

-
- )} - -
- {info && - info.episodes.map((item, index) => ( - - - - ))} -
-
-
- ); -} - -async function getAnimeInfo(anime_id) { - const res = await fetch( - "https://anime-sensei-api.vercel.app/anime/gogoanime/info/" + anime_id, - { next: { revalidate: 1800 } } - ); - const data = res.json(); - return data; -} -- cgit v1.2.3